import React from "react";
import ReactDOM from "react-dom/client";
import "@/assets/style.less";
import router from "./router";
import store from "./store";
import { Provider } from "react-redux";
import Toast from "./components/Toast";

const div = document.getElementById("root")!; //！代表div 一定存在
const root = ReactDOM.createRoot(div);

root.render(
  <Provider store={store}>
    {router}
    <Toast />
  </Provider>
);
